package com.online.service.user;

import com.online.pojo.Bill;
import com.online.pojo.menu;
import com.online.pojo.merchant;


import java.sql.SQLException;
import java.util.List;

public interface merchantService {
    //商家登录
    public merchant login(String name) throws SQLException;
    //展示菜单
    public List<menu> select(List<menu> list,String name) throws SQLException;
    public menu select(menu menu,int id) throws SQLException;
    public List<menu> select(List<menu> list,double price,String type,String name,String shop_name) throws SQLException;
    //插入菜单
    public boolean insert(String name,String shop_name,double price,String type);
    //下架
    public boolean del(int id) throws SQLException;
    //
    public boolean insert(String shop_name,int shopid,String user_name,double price,int pay);

    public boolean update(Bill bill) throws SQLException;
    public  merchant loginUsername(String name) throws SQLException;

}
